//
//  oldOldUserOrderListTableViewCell.m
//  laonianbang
//
//  Created by 勇拓 李 on 18/3/15.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldOldUserOrderListTableViewCell.h"

@interface oldOldUserOrderListTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *label_type;
@property (weak, nonatomic) IBOutlet UILabel *label_time;
@property (weak, nonatomic) IBOutlet UILabel *label_sever;
@property (weak, nonatomic) IBOutlet UILabel *label_status;
@property (weak, nonatomic) IBOutlet UILabel *label_charge;

@end

@implementation oldOldUserOrderListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setOrderInfo:(oldOrderInfo *)orderInfo
{
    _orderInfo = orderInfo;
    _label_time.text = orderInfo.endTime;
    _label_sever.text = [NSString stringWithFormat:@"工作人员：%@", orderInfo.serverInfo.uname];
    _label_type.text = orderInfo.serveCategory.cname;
    _label_status.text = [orderInfo getCurrentOrderStatus];
    if ([orderInfo.status integerValue] == Order_End) {
        _label_status.textColor = Color_With_Rgb(242, 102, 18, 1);
    }
    else
    {
        _label_status.textColor = OLD_BLACK;
    }
    _label_charge.text = orderInfo.totalAmount;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
